<?php

namespace App\Validators\Buz;

use \Prettus\Validator\Contracts\ValidatorInterface;
use \Prettus\Validator\LaravelValidator;

class SMSValidator extends LaravelValidator
{

    protected $rules = [
        'send' => [
            'type' => 'required',
            'to' => [
                'required_if:type,1,3',
                'max:11',
                'phone'
            ],
        ],
   ];

    protected $attributes = [
        'type' => '短信类型',
        'to' => '手机号'
    ];
}
